package com.leadingsoft.pwxk.converter;

import org.springframework.stereotype.Component;

import com.leadingsoft.common.converter.AbstractConverter;
import com.leadingsoft.pwxk.dto.ProductCapaDto;
import com.leadingsoft.pwxk.model.ProductCapa;

/**
 * @author: lipan 2018年5月15日
 * @description: ()
 * 
 */

@Component
public class ProductCapaConverter extends AbstractConverter<ProductCapa, ProductCapaDto> {

	@Override
	protected ProductCapaDto toDtoActual(ProductCapa model) {
		// TODO Auto-generated method stub

		ProductCapaDto dto = new ProductCapaDto();
		dto.setId(model.getId());
		dto.setDataid(model.getDataid());
		dto.setActualoutput(model.getActualoutput());
		dto.setAvgvalue(model.getAvgvalue());
		dto.setCapacity(model.getCapacity());
		dto.setCapacontent(model.getCapacontent());
		dto.setClosetooneyear(model.getClosetooneyear());
		dto.setClosetothreeyear(model.getClosetothreeyear());
		dto.setClosetotwoyear(model.getClosetotwoyear());
		dto.setIssecretname(model.getIssecretname());
		dto.setOneyear(model.getOneyear());
		dto.setThreeyear(model.getThreeyear());
		dto.setTwoyear(model.getTwoyear());
		dto.setProductname(model.getProductname());
		dto.setProdunitsname(model.getProdunitsname());
		dto.setProyeartime(model.getProyeartime());

		return null;
	}

	public void copyProperties(ProductCapa model, ProductCapaDto dto) {
		// model.setId(dto.getId());
		// model.setDataid(dto.getDataid());
	}

}
